<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<link href="{TPL}css/NewTopFoot.css"   rel="stylesheet" type="text/css" />
<link href="{TPL}css/AddItemPanel.css"   rel="stylesheet" type="text/css" />
<link href="{TPL}css/home.css"   rel="stylesheet" type="text/css" />
<script type="text/javascript" src="{TPL}js/jquery-1.4.1.min.js"></script>
<script type="text/javascript" src="{TPL}js/jQuery.Extend.js"></script>
<script src="{TPL}js/jQuery.Drag.min.js" type="text/javascript"></script>
<script type="text/javascript" src="{TPL}js/jquery.cookies.2.1.0.min.js"></script>

<script src="{TPL}js/Gobal.js" type="text/javascript"></script>
<link type="text/css" id="styleName" rel="stylesheet" href="{TPL}css/orange/color.css"/ >
<script type="text/javascript" src="{TPL}js/wdggcGobal.js"></script>
<link type="text/css" rel="stylesheet" href="{TPL}css/OrderCart.css">
<script type="text/javascript" src="{TPL}js/jQuery.movePanel.min.js"></script>
<script type="text/javascript" src="{TPL}js/OrderCart.js"></script>
<style type="text/css">
        .lipin
        {
            border: #ddd solid 1px;
            padding: 10px 0 10px 10px;
            background: #ffffcc;
            margin-bottom: 3px;
        }
        .lipin h3
        {
            font-size: 12px;
            height: 22px;
        }
        .lipin li
        {
            line-height: 20px;
        }
        .lipin p
        {
            text-align: right;
            margin-right: 10px;
        }
        .lipin a
        {
            color: #ff9900;
        }
        .lipin a:hover
        {
            text-decoration: none;
            color: #ff0000;
        }
       .w8 .shanchu
        {
            background: url({TPL}images/sc_an.gif) no-repeat 0% -28px;
            margin-left: 10px;
            padding: 2px 0 5px 20px;
			height:10px;
        }
    </style>

<title>{lang My_Order} -{$cfg_site_name}</title>
</head>
<body>

{template 'header'}
<div class="admin">
  <div class="ding">
    <div class="shouye"> <a title="我的会员中心" href="{url_m.php}"></a> </div>
    <div class="lb">
              <div class="weizhi">
                      <b>{lang Location}：</b><a href="{url_m.php}">{lang Member_Center}</a><span>&gt;</span>{lang My_Order}
                  </div>
                
                <div class="shezhi">
                    <p>
                        <a href="{url_m.php}">{lang My_Member_Center}</a><span>|</span>{lang Setting_style}：</p>
        <ul>
          <li onclick="changeStyle('orange')" class="mypanliS1"></li>
          <li onclick="changeStyle('grey')" class="mypanliS2"></li>
          <li onclick="changeStyle('blue')" class="mypanliS3"></li>
        </ul>
      </div>
    </div>
  </div>

{template 'member_left'}

  <div class="fill">
  <form method="post" action="{url_m.php?name=tosendorder}" enctype="multipart/form-data" name="form" onSubmit="return  submitToDeliverType()">
    <div id="productsList" class="qh">
      <ul class="xk">
        <li onclick="changePanel(0);" class="t">{lang All_merchandise}</li>
        <li onclick="changePanel(1);">{lang hb_to_warehouse}</li>
        <li onclick="changePanel(2);">{lang dg_warehouse}</li>
      </ul>
	  
      <div style="margin: -35px 0pt 0pt; float: right; font-size: 12px; position: relative; width: 350px;"> <a style="float: right; color: rgb(255, 153, 0);" target="_blank" href="#">{lang new_gg}！</a> </div>
      <div id="vPanel0" class="vPanel">
	{if !empty($dataarray123)}
        <table width="100%" border="0" cellspacing="0" cellpadding="1">
          <tr>
            <td width="54" height="30" align="center" class="liebiao_top liebiao_bg">{lang select}</td>
            <td width="100" height="30" align="center" class="liebiao_top liebiao_bg">{lang pic}</td>
            <td width="467" align="center" class="liebiao_top liebiao_bg">{lang goods_name}</td>
            <td width="109" height="30" align="center" class="liebiao_top liebiao_bg">{lang dprice}<font color="red">(￥)</font></td>
            <td width="111" height="30" align="center" class="liebiao_top liebiao_bg">{lang Quantity}</td>
            <td width="123" height="30" align="center" class="liebiao_top liebiao_bg">{lang weight}（g）</td>
            <td width="193" height="30" align="center" class="liebiao_top liebiao_bg">{lang order_state}</td>
            <td width="201" height="30" align="center" class="liebiao_top liebiao_bg">{lang Operation}</td>
          </tr>
		{loop $dataarray123 $r}
          <tr class="0deltr_{$r['oid']}">
            <td width="54" height="60" align="center"  class="w8">
				{if $r['state']==1 || $r['state']==6}
					<a class=shanchu onclick="del({$r['oid']}, 0, 0)" href="javascript:;" title="点击取消订单"></a>
				{elseif $r['state']<4}
					<input type="checkbox" name="products[]" class="productsdisabled"  value="{$r['oid']}" disabled="true"/>
				{elseif $r['state']>4 }
					<input type="checkbox" name="products[]" class="productsdisabled" value="{$r['oid']}" disabled="true"/>
				{else}
					<input type="checkbox" name="products[]" id="products" class="products" value="{$r['oid']}" />
				{/if}
			</td>
            <td height="60" align="left" > <a style="border:#ccc 1px solid;float:left" target="_blank" href="{$r['goodsurl']}"> <img src="{$r['showimg']}" style="width:50px;height:50px" onerror="this.src='{TPL}images/noimg80.gif'" /></a>
            &nbsp;</td>
            <td height="60" align="left" ><a href="{$r['goodsurl']}" target="_blank"  class="lan hg"> {$r['goodsname']}</a></td>
            <td width="109" height="60" align="center" class="w4"><font color="red">{$r['goodsprice']}</font></td>
            <td width="111" height="60" align="center">{$r['goodsnum']}</td>
            <td width="123" height="60" align="center" class="w6">{$r['orderweight']}</td>
            <td width="193" height="60" align="center">{$r['statename']}</td>
            <td width="201" height="60" align="center">
			<input id="remark{$r['oid']}" type="hidden" value="{$r['goodsremark']}"/>
			<a href="javascript:;" onclick="showRemarkPanel({$r['oid']}, {if $r['state']==1}1{else}0{/if}, this)" class="lan">{lang notes}</a> 
			{if !empty($r['orderremark'])}
			<a href="javascript:;" onclick="showoRemark({$r['oid']})" class="lan"><img src="{TPL}images/wen.gif"/></a>
			<div class="orderremark" id="orderremark{$r['oid']}">
                        <p>
                            {$r['orderremark']}</p>
                        <button onclick="$('#orderremark{$r['oid']}').hide();return false;">
                        </button>
            </div>
			{/if}
			</td>
          </tr>
          <tr class="0deltr_{$r['oid']}">
            <td height="25" colspan="8" align="center" class="liebiao_lv liebiao_bg">{lang goods}ID：{$r['oid']} &nbsp;&nbsp;{lang tj_time}：{date('Y-m-d',$r['addtime'])}</td>
          </tr>

		{/loop}
		<tr><td colspan="8">
		<div class="orderInfo" id="orderInfo" style="border:#ddd 1px dashed;line-height:30px;margin-bottom:25px;height:30px;background:url(../iamges/tixing.gif) #fdfde1 no-repeat 8px 7px;padding-left:25px"> </div>
		</td></tr>
          <tr>
            <td height="30" colspan="8" valign="middle" class="hg_50"><span class="liebiao_xia_font1">{lang select}：</span> <span class="liebiao_xia_font2">
			<a href="javascript:;" onclick="CheckAll(true)">{lang qselect}</a>
			<a href="javascript:;" onclick="FCheck()">{lang fselect}</a>
			</span>
                <input name="submit" type="submit" class="in" onmouseover="this.className='in_'" onmouseout="this.className='in'" value="提交运送" />            </td>
          </tr>
        </table>		
	{else}
        <div class="kong">
          <p> {lang favorite_might_Shopping_website}！</p>
          <a href="{url_m.php?name=fillorders}">{lang i_like_Shopping}</a><i>|</i><a href="{url_see.php}">{lang sb_see}</a> </div>
	{/if}
	

		

      </div>
      <div style="display: none;" id="vPanel1" class="vPanel">
	{if !empty($dataarray4)}
        <table width="100%" border="0" cellspacing="0" cellpadding="1">
          <tr>
            <td width="54" height="30" align="center" class="liebiao_top liebiao_bg">{lang select}</td>
            <td width="100" height="30" align="center" class="liebiao_top liebiao_bg">{lang pic}</td>
            <td width="467" align="center" class="liebiao_top liebiao_bg">{lang goods_name}</td>
            <td width="109" height="30" align="center" class="liebiao_top liebiao_bg">{lang dprice}<font color="red">(￥)</font></td>
            <td width="111" height="30" align="center" class="liebiao_top liebiao_bg">{lang Quantity}</td>
            <td width="123" height="30" align="center" class="liebiao_top liebiao_bg">{lang weight}（g）</td>
            <td width="193" height="30" align="center" class="liebiao_top liebiao_bg">{lang order_state}</td>
            <td width="201" height="30" align="center" class="liebiao_top liebiao_bg">{lang Operation}</td>
          </tr>
		{loop $dataarray4 $r}
          <tr class="1deltr_{$r['oid']}">
            <td width="54" height="60" align="center"  class="w8">
				{if $r['state']==1}
					<a class=shanchu onclick="del({$r['oid']}, 0, 0)" href="javascript;;" title="点击取消订单"></a>
				{elseif $r['state']<4}
					<input type="checkbox" name="products[]" class="productsdisabled" value="{$r['oid']}" disabled="true"/>
				{elseif $r['state']>4}
					<input type="checkbox" name="products[]" class="productsdisabled" value="{$r['oid']}" />
				{else}
					<input type="checkbox" name="products[]" id="products" class="products" value="{$r['oid']}" />
				{/if}
			</td>
            <td height="60" align="left" > <a style="border:#ccc 1px solid;float:left" target="_blank" href="{$r['goodsurl']}"> <img src="{$r['showimg']}" style="width:50px;height:50px" onerror="this.src='{TPL}images/noimg80.gif'" /></a>
            &nbsp;</td>
            <td height="60" align="left" ><a href="{$r['goodsurl']}" target="_blank"  class="lan hg"> {$r['goodsname']}</a></td>
            <td width="109" height="60" align="center"  class="w4"><font color="red">{$r['goodsprice']}</font></td>
            <td width="111" height="60" align="center">{$r['goodsnum']}</td>
            <td width="123" height="60" align="center" class="w6">{$r['orderweight']}</td>
            <td width="193" height="60" align="center">{$r['statename']}</td>
            <td width="201" height="60" align="center">
			<input id="remark{$r['oid']}" type="hidden" value="{$r['goodsremark']}"/>
			<input id="orderremark{$r['oid']}" type="hidden" value="{$r['orderremark']}"/>
			<a href="javascript;;" onclick="showRemarkPanel({$r['oid']}, {if $r['state']==1}1{else}0{/if}, this)" class="lan">{lang notes}</a> 
			{if !empty($r['orderremark'])}
			<a href="javascript;;" onclick="showorderRemark({$r['oid']}, this)" class="lan"><img src="{TPL}images/wen.gif"/></a>
			{/if}
			</td>
          </tr>
          <tr class="1deltr_{$r['oid']}">
            <td height="25" colspan="8" align="center" class="liebiao_lv liebiao_bg">{lang goods}ID：{$r['oid']} &nbsp;&nbsp;{lang tj_time}：{date('Y-m-d',$r['addtime'])}</td>
          </tr>

		{/loop}
		<tr><td colspan="8">
		<div class="orderInfo" id="orderInfo" style="border:#ddd 1px dashed;line-height:30px;margin-bottom:25px;height:30px;background:url(../iamges/tixing.gif) #fdfde1 no-repeat 8px 7px;padding-left:25px"> </div>
		</td></tr>
          <tr>
            <td height="30" colspan="8" valign="middle" class="hg_50"><span class="liebiao_xia_font1">{lang select}：</span> <span class="liebiao_xia_font2">
			<a href="javascript:;" onclick="CheckAll(true)">{lang qselect}</a>
			<a href="javascript:;" onclick="FCheck()">{lang fselect}</a>
			</span>
                <input name="submit" type="submit" class="in" onmouseover="this.className='in_'" onmouseout="this.className='in'" value="提交运送" />            </td>
          </tr>
        </table>		
	{else}
        <div class="kong">
          <p> {lang Your_order_warehouse_submitted_delivery_arrives}。</p>
          <a href="{url_m.php?name=fillorders}">{lang gx_shopping}</a><i>|</i><a href="{url_see.php}">{lang sb_see}</a> </div>
	{/if}
	
      </div>
    
	<div style="display: none;" class="vPanel" id="vPanel2">
	  
	{if !empty($dataarray5)}
        <table width="100%" border="0" cellspacing="0" cellpadding="1">
          <tr>
            <td width="54" height="30" align="center" class="liebiao_top liebiao_bg">{lang select}</td>
            <td width="100" height="30" align="center" class="liebiao_top liebiao_bg">{lang pic}</td>
            <td width="467" align="center" class="liebiao_top liebiao_bg">{lang goods_name}</td>
            <td width="109" height="30" align="center" class="liebiao_top liebiao_bg">{lang dprice}<font color="red">(￥)</font></td>
            <td width="111" height="30" align="center" class="liebiao_top liebiao_bg">{lang Quantity}</td>
            <td width="123" height="30" align="center" class="liebiao_top liebiao_bg">{lang weight}（g）</td>
            <td width="193" height="30" align="center" class="liebiao_top liebiao_bg">{lang order_state}</td>
            <td width="201" height="30" align="center" class="liebiao_top liebiao_bg">{lang Operation}</td>
          </tr>
		{loop $dataarray5 $r}
          <tr class="2deltr_{$r['oid']}">
            <td width="54" height="60" align="center"  class="w8">
				{if $r['state']==1}
					<A class=shanchu onclick="del({$r['oid']}, 0, 0)" href="javascript:;" title="点击取消订单"></A>
				{elseif $r['state']<4}
					<input type="checkbox" name="products[]" class="productsdisabled" value="{$r['oid']}" disabled="true"/>
				{elseif $r['state']==4 && $r['orderweight']==0}
					<input type="checkbox" name="products[]" class="productsdisabled" value="{$r['oid']}" disabled="true"/>
				{else}
					<input type="checkbox" name="products[]" id="products" class="products" value="{$r['oid']}" />
				{/if}
			</td>
            <td height="60" align="left" > <a style="border:#ccc 1px solid;float:left" target="_blank" href="{$r['goodsurl']}"> <img src="{$r['showimg']}" style="width:50px;height:50px" onerror="this.src='{TPL}images/noimg80.gif'" /></a>
            &nbsp;</td>
            <td height="60" align="left" ><a href="{$r['goodsurl']}" target="_blank"  class="lan hg"> {$r['goodsname']}</a></td>
            <td width="109" height="60" align="center"  class="w4"><font color="red">{$r['goodsprice']}</font></td>
            <td width="111" height="60" align="center">{$r['goodsnum']}</td>
            <td width="123" height="60" align="center"  class="w6">{$r['orderweight']}</td>
            <td width="193" height="60" align="center">{$r['statename']}</td>
            <td width="201" height="60" align="center">
			<input id="remark{$r['oid']}" type="hidden" value="{$r['goodsremark']}"/>
			<input id="orderremark{$r['oid']}" type="hidden" value="{$r['orderremark']}"/>
			<a href="javascript:;" onclick="showRemarkPanel({$r['oid']}, {if $r['state']==1}1{else}0{/if}, this)" class="lan">{lang notes}</a> 
			{if !empty($r['orderremark'])}
			<a href="javascript:;" onclick="showorderRemark({$r['oid']}, this)" class="lan"><img src="{TPL}images/wen.gif"/></a>
			{/if}
			</td>
          </tr>
          <tr class="2deltr_{$r['oid']}">
            <td height="25" colspan="8" align="center" class="liebiao_lv liebiao_bg">{lang goods}ID：{$r['oid']} &nbsp;&nbsp;{lang tj_time}：{date('Y-m-d',$r['addtime'])}</td>
          </tr>

		{/loop}
		<tr><td colspan="8">
		<div class="orderInfo" id="orderInfo" style="border:#ddd 1px dashed;line-height:30px;margin-bottom:25px;height:30px;background:url(../iamges/tixing.gif) #fdfde1 no-repeat 8px 7px;padding-left:25px"> </div>
		</td></tr>
          <tr>
            <td height="30" colspan="8" valign="middle" class="hg_50"><span class="liebiao_xia_font1">{lang select}：</span> <span class="liebiao_xia_font2">
			<a href="javascript:;" onclick="CheckAll(true)">{lang qselect}</a>
			<a href="javascript:;" onclick="FCheck()">{lang fselect}</a>
			</span>
			<input type="hidden" id="oids" name="oids" value=""/>
                <input name="submit" type="submit" class="in" onmouseover="this.className='in_'" onmouseout="this.className='in'" value="提交运送" disabled="true" />            </td>
          </tr>
        </table>		
	{else}
        <div class="kong">
          <p> {lang Your_order_processed_wait_patiently}。</p>
          <a href="{url_m.php?name=fillorders}">{lang gx_shopping}</a><i>|</i><a href="{url_see.php}">{lang sb_see}</a> </div>
	{/if}	  

      </div>
    </div>
  </div>

  <div class="yj"> </div>
</div>

    <script type="text/javascript">
        function showOrderInfo() {
            var w = 0; var m = 0;
            if ($(".products:checked", $("#vPanel" + vPanelIndex)).length > 0)
                $(".products:checked", $("#vPanel" + vPanelIndex)).each(function(i, d) {
                    w += parseInt($.trim($(d).parent().nextAll(".w6").text()));
                    m += parseFloat($.trim($(d).parent().nextAll(".w4").text()));
                });
            else
                w = m = 0;
            $(".orderInfo", $("#vPanel" + vPanelIndex)).html('选中的商品重量总计:<span>' + w + 'g</span>，商品价值:<span>￥' + m.toFixed(2) + '</span>(可获积分' + parseInt(Math.floor(m)) + '点)<a href="page.php?action=estimates&w=' + w + '&m=' + m.toFixed(2) + '" target="_blank">进行费用估算</a>');
        }
        showOrderInfo();
        $(":checkbox").click(showOrderInfo);
    </script>

{template 'footer'}

    </form>
</body>
</html>